Create a new querying policy with model-level provenance selections.
Atomically creates a QueryingPolicy, its child
QueryingPolicyModel entries, and their
QueryingPolicyModelProvenanceSelection entries in one request.
product_id : UUID
The product this querying policy belongs to.
body : CreateQueryingPolicyInput
Policy name and per-model provenance source selections.
mesh : Mesh
Injected database mesh with session and account context.
result : CreateQueryingPolicyResult
The created querying policy with nested models and selections.
POST /api/networks/policies/querying/{product_id}
{
"name": "Auto Loan Policy",
"models": [
{
"product_model_definition_id": "...",
"provenance_selections": [
{ "provenance_option_id": "...", "priority": 0 },
{ "provenance_option_id": "...", "priority": 1 }
]
}
]
}